package com.easy.framework.database.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 数据模型基增强类
 * </p>
 *
 * @author Yang Huijing
 * @since 2023-04-10
 */
@Getter
@Setter
public class LogicDeleteEntity extends DefaultEntity {

    /**
     * 是否删除（0否，1是）
     */
    @JsonIgnore
    @TableLogic
    @TableField(fill = FieldFill.INSERT, select = false, value = "`del_flag`")
    private Integer delFlag;
}
